Integrand size = 14, antiderivative size = 23 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=\frac {\log (\sin (x))}{a}-\frac {\log (a \cos (x)+b \sin (x))}{a} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3180, 3556, 3212} \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=\frac {\log (\sin (x))}{a}-\frac {\log (a \cos (x)+b \sin (x))}{a} \]
[In]
[Out]
Rule 3180
Rule 3212
Rule 3556
Rubi steps \begin{align*} \text {integral}& = \frac {\int \cot (x) \, dx}{a}-\frac {\int \frac {b \cos (x)-a \sin (x)}{a \cos (x)+b \sin (x)} \, dx}{a} \\ & = \frac {\log (\sin (x))}{a}-\frac {\log (a \cos (x)+b \sin (x))}{a} \\ \end{align*}
Time = 0.37 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.87 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=\frac {\log (\sin (x))-\log (a \cos (x)+b \sin (x))}{a} \]
[In]
[Out]
Time = 0.44 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.91
method | result | size |
default | \(\frac {\ln \left (\tan \left (x \right )\right )}{a}-\frac {\ln \left (a +b \tan \left (x \right )\right )}{a}\) | \(21\) |
parallelrisch | \(\frac {\ln \left (\tan \left (\frac {x}{2}\right )\right )-\ln \left (\tan \left (\frac {x}{2}\right )^{2} a -2 b \tan \left (\frac {x}{2}\right )-a \right )}{a}\) | \(33\) |
norman | \(\frac {\ln \left (\tan \left (\frac {x}{2}\right )\right )}{a}-\frac {\ln \left (\tan \left (\frac {x}{2}\right )^{2} a -2 b \tan \left (\frac {x}{2}\right )-a \right )}{a}\) | \(36\) |
risch | \(-\frac {\ln \left ({\mathrm e}^{2 i x}-\frac {i b +a}{i b -a}\right )}{a}+\frac {\ln \left ({\mathrm e}^{2 i x}-1\right )}{a}\) | \(44\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.91 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=-\frac {\log \left (2 \, a b \cos \left (x\right ) \sin \left (x\right ) + {\left (a^{2} - b^{2}\right )} \cos \left (x\right )^{2} + b^{2}\right ) - \log \left (-\frac {1}{4} \, \cos \left (x\right )^{2} + \frac {1}{4}\right )}{2 \, a} \]
[In]
[Out]
\[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=\int \frac {\csc {\left (x \right )}}{a \cos {\left (x \right )} + b \sin {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 48 vs. \(2 (23) = 46\).
Time = 0.22 (sec) , antiderivative size = 48, normalized size of antiderivative = 2.09 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=-\frac {\log \left (-a - \frac {2 \, b \sin \left (x\right )}{\cos \left (x\right ) + 1} + \frac {a \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}}\right )}{a} + \frac {\log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right )}{a} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.96 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=-\frac {\log \left ({\left | b \tan \left (x\right ) + a \right |}\right )}{a} + \frac {\log \left ({\left | \tan \left (x\right ) \right |}\right )}{a} \]
[In]
[Out]
Time = 21.42 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.39 \[ \int \frac {\csc (x)}{a \cos (x)+b \sin (x)} \, dx=-\frac {\ln \left (-a\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+2\,b\,\mathrm {tan}\left (\frac {x}{2}\right )+a\right )-\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{a} \]
[In]
[Out]